﻿<%@ Page Language="C#" MasterPageFile="~/SiteAdmin/MasterPage.master" AutoEventWireup="true" CodeFile="WorkflowHistory.aspx.cs" Inherits="SiteAdmin_WorkflowHistory" Title="Untitled Page" Theme="DefaultSkin" %>
<%@ Register src="../Controls/TipMessage/TipMessage.ascx" tagname="TipMessage" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="contentPlaceHolderID" Runat="Server">
<asp:Panel ID="pnlGrid" runat="server" CssClass="centerPanel" Width="95%">
    <uc1:TipMessage ID="TipMessage1" runat="server" />
    <div class="webPanelBorder">
        <div class="webPanelCaption">历史工作事项</div>
        <div class="webPanelContent">
        <ofcc:GridView ID="gridView" runat="server" AutoGenerateColumns="False" 
                OnRowDataBound="gridView_RowDataBound" 
                OnSplitPageIndexChange="gridView_SplitPageIndexChange" 
                onrowcommand="gridView_RowCommand">
            <Columns>
                <asp:TemplateField HeaderText="类别">
                    <ItemTemplate>
                        <asp:HyperLink ID="hyperLink" runat="server" Target="_blank" NavigateUrl="#">
                            <%#DataBinder.Eval(Container.DataItem, "GroupCodeName")%> - <%#DataBinder.Eval(Container.DataItem, "CategorySubject")%>
                        </asp:HyperLink>
                        <asp:HiddenField ID="HiddenField1" runat="server" Value='<%#DataBinder.Eval(Container.DataItem,"CategoryID")%>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="标题">
                    <ItemTemplate>
                        <asp:LinkButton ID="btnSubject" Text='<%#DataBinder.Eval(Container.DataItem,"Subject")%>' 
                            CommandArgument='<%#DataBinder.Eval(Container.DataItem,"InstanceID")%>' runat="server"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
			    <asp:BoundField DataField="Username" HeaderText="拟稿人" />
			    <asp:BoundField DataField="StartDate" HeaderText="提交时间" />			    
			    <asp:BoundField DataField="CurrentState" HeaderText="当前状态" />
			    <asp:BoundField DataField="ProcessActivity" HeaderText="当前活动" />
			    <asp:BoundField DataField="ProcessDate" HeaderText="处理时间" />
            </Columns>
        </ofcc:GridView>
        </div>
    </div>
    <div class="webPanelButtonArea">
        <ofcc:LinkButton ID="btnAdd" runat="server" CssClass="linkButton" 
            onclick="btnAdd_Click" >发起申请</ofcc:LinkButton>        
    </div>
</asp:Panel>

</asp:Content>

